import request from '@/utils/request'

// 查询领料清单列表
export function listPickingList(query) {
  return request({
    url: '/mes/pickingList/list',
    method: 'get',
    params: query
  })
}

// 查询领料清单详细
export function getPickingList(id) {
  return request({
    url: '/mes/pickingList/' + id,
    method: 'get'
  })
}

// 新增领料清单
export function addPickingList(data) {
  return request({
    url: '/mes/pickingList',
    method: 'post',
    data: data
  })
}

// 修改领料清单
export function updatePickingList(data) {
  return request({
    url: '/mes/pickingList',
    method: 'put',
    data: data
  })
}

// 删除领料清单
export function delPickingList(id) {
  return request({
    url: '/mes/pickingList/' + id,
    method: 'delete'
  })
}
